<#setting number_format="#">
<?xml version="1.0" encoding="GBK"?>
<Root>
	<#if (scenes)??>
		<#list scenes as scene >
			<Scenario>
				<BasicInfo>
					<std::string name="Name">${name!}</std::string>
					<DateTime name="LastSaveTime">${.now}</DateTime>
					<std::string name="ArchitectProjectId"></std::string>
				</BasicInfo>
				<Sides>
					<Side name="红方" id="1" color="#d8080f" description="红方">
						<Entities>
							<#if (scene.red)??>
								<#list scene.red as entity >
									<#if (entity.platType)??>
										<FireUnit readableName="${entity.platName}"
												  equipmentName="<#if (typeMap[entity.platType])??>${typeMap[entity.platType]}<#else>${entity.platType}</#if>"
												  superiorEntityName="" OwnerOrganizationName="">
											<float name="CreationTime">0</float>
											<std::string name="ID">${entity_index+1000}</std::string>
											<std::string name="Name">${entity.platName}</std::string>
											<SCGPositionGEO name="PositionGEO">
												<double name="Altitude">${entity.height}</double>
												<double name="Latitude">${entity.lat}</double>
												<double name="Longitude">${entity.lng}</double>
											</SCGPositionGEO>
											<Components/>
										</FireUnit>
									</#if>
								</#list>
							</#if>
						</Entities>
					</Side>
					<Side name="蓝方" id="2" color="#0000ff" description="蓝方">
						<Entities>
							<#if (scene.blue)??>
								<#list scene.blue as entity >
									<#if (entity.platType)??>
										<FireUnit readableName="${entity.platName}"
												  equipmentName="<#if (typeMap[entity.platType])??>${typeMap[entity.platType]}<#else>${entity.platType}</#if>"
												  superiorEntityName="" OwnerOrganizationName="">
											<float name="CreationTime">0</float>
											<std::string name="ID">${entity_index+8000}</std::string>
											<std::string name="Name">${entity.platName}</std::string>
											<SCGPositionGEO name="PositionGEO">
												<double name="Altitude">${entity.height}</double>
												<double name="Latitude">${entity.lat}</double>
												<double name="Longitude">${entity.lng}</double>
											</SCGPositionGEO>
											<Components/>
										</FireUnit>
									</#if>
								</#list>
							</#if>
						</Entities>
					</Side>
				</Sides>
				<Rules />
				<CommunicationNetworks />
			</Scenario>
		</#list>
	</#if>
</Root>
